﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DownloadType.aspx.cs" Inherits="CJJCH.Web.Manage.DownloadType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Style/SystemCss.css" rel="stylesheet" type="text/css" />
    <script src="../JScript/jquery-1.4.4.min.js" type="text/javascript"></script>

      <script language="javascript" type="text/javascript">
          function checkform() {
              if (IsNothing($("#txtType"), "请输入标准规范编号！")) {
                  return false;
              }

              if (IsNothing($("#txtOrderNum"), "请输入排序号！")) {
                  return false;
              }
              else if (checkdigit($("#txtOrderNum"), "请输入数字！")) {
                  return false;
              }


              return true;
          }
    </script>
        
           
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <div> 
    
        <uc:DownloadTop ID="DownloadTop1" runat="server" IIndex="3" />
    
    </div>
          <div id="divHidden" runat="server" visible="false">
                <div runat="server" id="div1" visible="false">
                <asp:Label ID="lblSecondId" runat="server"></asp:Label>
                <asp:Label ID="lblFirstID" runat="server"></asp:Label>
                <asp:Label ID="lblSecondName" runat="server"></asp:Label>              
                <asp:Label ID="lblID" runat="server"></asp:Label>
                <asp:Label ID="lblKeyWord" runat="server"></asp:Label>
            </div>            
                       
                        </div>
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
                <tr>
                    <td width="1" height="100%" class="Left">
                    </td>
                         <td height="100%" style="width: auto; width: 100%; background: #d7e7ff;">
                    <div class="MainbodyTop" style="margin-bottom: 5px;">
                        <div class="MainSearch" style="width: 100%; margin: 5px 0px 5px 0px;">
                            <table border="0" cellpadding="2" cellspacing="0" width="auto">
                                <tr>
                                    <td>
                                        类别名称：<asp:TextBox ID="txtKeyword" runat="server" class="InputSearch_x1" Width="120px"></asp:TextBox>
                                    </td>
                           <td>
                                <asp:Button ID="btnSearch" runat="server" Text=" 搜 索 " Style="padding: 2px 10px 3px 10px" Width="62px" CssClass="BtnSearch_x1"  
                                    onclick="btnSearch_Click" />
                           </td>
                                  </tr>
                            </table>
                        </div>
                    </div>
                </td>
                <td class="Right" height="100%">
                </td>
            </tr>
        </table>
    </div>
                    
           <div class="RBodyTable_x2 Link_font" style="width: 100%;">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"
                                class="font">
                                <tr>
                                    <th width="35%" align="center" valign="middle" class="HeaderBg">
                                        类别
                                    </th>
                                    
                                    <th width="35%" align="center" valign="middle" class="HeaderBg">
                                        排序
                                    </th>
                                    <th width="30%" align="center" valign="middle" class="HeaderBg">
                                        操作
                                    </th>
                                </tr>
                                <asp:Repeater ID="rptNormType" runat="server" onitemdatabound="rptNormType_ItemDataBound" >
                                    <ItemTemplate>
                                        <tr class="tdBg1">
                                            <td align="center" valign="middle">
                                                <asp:TextBox ID="txtTypeName" runat="server"  class="InputSearch_x1" Width="120px"></asp:TextBox>
                                            </td>
                                            <td align="center" valign="middle">
                                                <asp:TextBox ID="txtOrder" runat="server"  class="InputSearch_x1" Width="120px"></asp:TextBox>
                                            </td>
                                            <td align="center" valign="middle">
                                                <asp:LinkButton ID="lbtnEdit" runat="server" OnClick="lbtnEdit_Click">修改</asp:LinkButton>
                                                <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtbDel_Click">删除</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                            <asp:Literal ID="litMessage" runat="server"></asp:Literal>
                            <table>
                                <tr>
                                    <th width="35%" align="center" valign="middle" class="HeaderBg">
                                        类别
                                    </th>
                                    <th width="35%" align="center" valign="middle" class="HeaderBg">
                                        排序
                                    </th>
                                    <th width="30%" align="center" valign="middle" class="HeaderBg">
                                        操作
                                    </th>
                                </tr>
                                <tr class="tdBg1">
                                    <td align="center" valign="middle">
                                        <asp:TextBox ID="txtType" runat="server"  class="InputSearch_x1" Width="120px"></asp:TextBox>
                                    </td>
                                    <td align="center" valign="middle">
                                        <asp:TextBox ID="txtOrderNum" runat="server"  class="InputSearch_x1" Width="120px"></asp:TextBox>
                                    </td>
                                    <td align="center" valign="middle">
                                        &nbsp;&nbsp;&nbsp;
                                        <asp:LinkButton ID="lbtbAdd" runat="server" OnClick="lbtnAdd_Click" OnClientClick="return checkform();">添加</asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </div>
    </form>
</body>
</html>
